package com.woniuxy.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Menu", description = "菜单")
public class Menu implements Serializable {

    @ApiModelProperty(value = "[自动增长]菜单主键")
    private String id;

    private String pid;

    @ApiModelProperty(value = "[必填项]内容")
    private String name;

    @ApiModelProperty(value = "[必填项]对应地址")
    private String url;

    private int open;

    private List<Role> roles;
}
